LOCAL_PATH := $(call my-dir)/..

include $(CLEAR_VARS)

cppdir = $(wildcard ../source/$1/*.cpp)


LOCAL_C_INCLUDES := $(LOCAL_PATH)/../Source/

LOCAL_SRC_FILES := jni/jniwrapper.cpp 
LOCAL_SRC_FILES += $(call cppdir,Engine)
LOCAL_SRC_FILES += $(call cppdir,Framework)
LOCAL_SRC_FILES += $(call cppdir,Framework/Android)
LOCAL_SRC_FILES += $(call cppdir,Graphics) 
LOCAL_SRC_FILES += $(call cppdir,Graphics/OpenGL) 

LOCAL_MODULE    := tyroengine
LOCAL_ARM_MODE := arm
LOCAL_LDLIBS    := -llog -landroid -lEGL -lGLESv1_CM 

include $(BUILD_SHARED_LIBRARY)
